import {Component, Input} from '@angular/core';
import {
    AlertController, LoadingController, NavController, NavParams, Platform,
    ToastController
} from 'ionic-angular';
import {SystemService} from "../../service/SystemService";
import {Log} from "../../../framework/utils/Log";
import {BasePage} from "../../BasePage";
import {UserManager} from "../../../framework/manager/UserManager";
import { ImageViewerController } from "ionic-img-viewer";
/**
 * Generated class for the FlowPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@Component({
  selector: 'page-flow',
  templateUrl: 'flow.html',
    providers:[SystemService]
})
export class FlowPage extends BasePage{
  static TAG:string='FlowPage';
    @Input() flowImgUrl: string;
  constructor(public navCtrl: NavController, public navParams: NavParams,public sys:SystemService,public platform: Platform,
    public loadingCtrl: LoadingController,
              public imageViewerCtrl: ImageViewerController,
    public toastCtrl: ToastController,
    public alertCtrl: AlertController) {
    super(platform, loadingCtrl, toastCtrl, alertCtrl);

  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad FlowPage');

  }
    async ngOnInit() {
        Log.printObj(FlowPage.TAG, "data==", this.flowImgUrl);

    }
    onHandler(){

    }
    /*onClick(imageToView) {
        const viewer = this.imageViewerCtrl.create(imageToView)
        viewer.present();
    }*/
}
